'use strict';
const Subscription = require('egg').Subscription;

// 晓晓优选 每日提醒
class DailyTaskJhshCache extends Subscription {
  static get schedule() {
    return {
      // interval: '5s',
      type: 'worker',
      cron: '0 30 20 * * *',
    };
  }
  async subscribe() {
    const { service } = this;
    await service.mailer.send({
      emails: ['1057966749@qq.com'],
      subject: '定时提醒-晓晓优选',
      html: '晓晓优选记得提交',
    });
  }
}

module.exports = DailyTaskJhshCache;
